﻿using System;
using System.Runtime.Serialization;

namespace JTLeigh.Commerce.Spencer.Core.Service.Contracts
{

	/// <summary>
	/// <see langword="abstract"/> base class for all fault data contracts.
	/// </summary>
    [DataContract(Name = "FaultBase", Namespace = "http://schemas.jtleigh.com/Commerce/Spencer/Core/1.0/")]
    public abstract class FaultBase
	{

		#region Properties

		/// <summary>
		/// Gets or sets the tenant identifier that identifies the tenant who made the request
		/// that is faulting.
		/// </summary>
		/// <value>A tenant identifier <see cref="Guid"/>.</value>
		[DataMember(Name = "TenantId", IsRequired = true)]
		public Guid TenantId { get; set; }

		#endregion // Properties

	}

}
